﻿using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using AduSkin.Controls.Metro;


namespace NewDeMo.Views
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : MetroWindow
    {
        MetroColorPicker colorPicker = new MetroColorPicker(1,1,1,1);
        public MainWindow()
        {
            InitializeComponent();
            //BorderBrush = Brushes.Purple;
            //改头顶颜色
            BorderBrush = (Brush)new BrushConverter().ConvertFrom("#C1581AA3");
            Theme.ColorChange += delegate
            {
                // 不要通过XAML来绑定颜色，无法获取到通知
                BorderBrush = Theme.CurrentColor.OpaqueSolidColorBrush;
            };
        }
    }
}